<{include file="admin/header.html"}>
<{include file="admin/left.html"}>

<fieldset><legend><{$tpl_title}></legend>
<{if $results == ""}>
	<div><center><font color="red">没有找到您要的分类！</font></center></div>
<{else}>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <th scope="col">编号</th>
    <th scope="col">分类名称</th>
    <th scope="col">排序</th>
    <th scope="col">操作</th>
  </tr>
  <{foreach from=$results item=one}>
  <tr>
    <td><{$one.mid}></td>
    <td><{$one.fulltitle}></td>
    <td><{$one.sort}></td>
    <td>
		<a class="table_icon" title="添加" href="<{spUrl c=metas a=write parent=$one.mid}>"><img src="/template/admin/images/Pencil.png" alt="添加" /></a>
		<a class="table_icon" title="修改" href="<{spUrl c=metas a=edit mid=$one.mid}>"><img src="/template/admin/images/Preferences.png" alt="修改" /></a>
		<a class="table_icon" title="删除" href="javascript:void(0);" onclick="delconfirm(<{$one.mid}>,'<{$one.name}>');"><img src="/template/admin/images/Trash.png" alt="删除" /></a>
		
	</td>
  </tr>
  <{/foreach}>
<{/if}>	
</table>
</fieldset>
<script type="text/javascript">
function delconfirm(id,title){
	if( window.confirm("确定删除“" + title + "”？") ){
		window.location = "<{spUrl c=metas a=del}>&mid=" + id;
	}
}
</script>
<{include file="admin/footer.html"}>